﻿<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<jsp:include page="../include/resource-head.jsp"/>
<body>

<jsp:include page="../include/common-top.jsp"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <jsp:include page="../include/common-menu.jsp"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form" action="">
                                <div class="input-group col-xs-2">
                                    <span class="input-group-addon">比赛球队</span>
                                    <input type="text" class="form-control" name="name" value="${name}">
                                </div>
                            </form>
                            <div class="form-tool btn-group">
                                <button class="btn btn-sm btn-success" form="form">
                                    <i class="icon-search"></i>搜索
                                </button>
                                <a class="btn btn-sm btn-info" href="/schedule/add.do">
                                    <i class="icon-plus"></i>添加
                                </a>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <td>比赛球队(xxVSxx)</td>
                                    <th>比赛时间</th>
                                    <th>比赛场地</th>
                                    <th>是否完成</th>
                                    <th>最后比分</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${pageInfo.list}" var="item">
                                    <tr>
                                        <td>${item.name}</td>
                                        <td>${item.date}</td>
                                        <td>${item.descript}</td>
                                        <td><c:if test="${item.status == 'yes'}">已完成</c:if><c:if test="${item.status!='yes'}">未完成</c:if></td>
                                        <td>${item.result}</td>
                                        <td>
                                            <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                                <a class="btn btn-xs btn-success"
                                                   href="/schedule/detail/${item.id}.do">详情</a>
                                                <a class="btn btn-xs btn-error"
                                                   href="/schedule/del/${item.id}.do">删除</a>
                                            </div>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                            <jsp:include page="../include/table-page.jsp"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<jsp:include page="../include/resource-script.jsp"/>
</html>

